<%@page import="java.util.Hashtable"%>
<%@page import="clases.Institucion"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>PIO- Administrador- Agregar Datos de situacion de la institucion</title>
    <script language="javascript" type="text/javascript" src="javascript/formularios.js"></script>
    <meta http-equiv="Content-Language" content="English" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" type="text/css" href="interfaz/style.css" media="screen" />
  </head>
  <%@include file="validacionAdmin.jsp" %>    
  <body>
    <div id="wrap">

      <div id="header">
        <!--        <h1><a href="#">Website Title</a></h1>-->
      </div>

      <%@include file="tm.jsp" %>

      <div id="content">
        <div class="right"> 
          <h1> Agregar informacion de instituci&oacute;n </h1>
          <%
            if (request.getAttribute("mensaje") != null) {
              out.print("<p align='center'>"+(String) request.getAttribute("mensaje")+"</p>"); 
            }
            String institucionid = (request.getAttribute("institucionid") != null)
                    ? Integer.toString((Integer) request.getAttribute("institucionid"))
                    : request.getParameter("institucionid");
          %>
          <h2> Agregar Datos acerca la Situacion </h2>
          <html:form action="/AgregarDatosSituacion" onsubmit="return validaDatosSituacion(this)">
            <table border="0">
              <tbody>
                <html:hidden property="mensaje" value=""/>
                <html:hidden property="institucionId" value="<%=institucionid%>"/>
                <tr>
                  <td colspan="2" id="tituloTabla">
                    Observaciones generales de planta f&iacute;sica
                  </td>
                </tr>
                <tr>
                  <td colspan="2" >
                    <html:text property="observacionesPlanta" size="70" maxlength="70"/>
                  </td>
                </tr>
                <tr>
                  <td colspan="2" id="tituloTabla" >
                    Observaciones generales de aspectos acad&eacute;micos
                  </td>
                </tr>
                <tr>
                  <td colspan="2">
                    Los estudiantes cuentan con profesores en todas sus asignaturas: 
                    <input type="radio" name ="form1" value="1" onclick="expandir_form(1,1)">Si</input>
                    <input type="radio" name ="form1" value="0" onclick="expandir_form(1,0)">No</input>
                  </td>
                </tr>
                <tr id="form1">
                  <td colspan="2">¿Cuales son las asignaturas?
                    <html:text maxlength="45" size="45" property="asignaturasAusenciaProfesores" />
                  </td>
                </tr>
                <tr id="form11">
                  <td colspan="2">A que nivel:
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                      7mo<html:checkbox property="asignaturasAusenciaNivel7"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                      8vo<html:checkbox property="asignaturasAusenciaNivel8"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                      9no<html:checkbox property="asignaturasAusenciaNivel9"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                      4to<html:checkbox property="asignaturasAusenciaNivel4"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                      5to<html:checkbox property="asignaturasAusenciaNivel5"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                      6to<html:checkbox property="asignaturasAusenciaNivel6"/>
                  </td>                    
                </tr>
                <tr id="form111">
                  <td>Motivo de Ausencio de Profesores:</td>
                  <td><html:text maxlength="40" property="motivoAusenciaProfesores" /></td>
                </tr>
                </div>
                <tr>
                  <td>Matricula de la institucion:&nbsp;&nbsp;
                    <html:text size="2" maxlength="2" property="matriculaInstitucion" />
                  </td>
                  <td>Nro de asistentes a la charla PIO: 
                    <html:text size="3" maxlength="3" property="nroAsistenciaCharla" />
                  </td>
                </tr>
                <td colspan="2">Alumnas embarazadas:
                  <input type="radio" name="form2" value="1" onclick="expandir_form(4,0)">Si</input>
                  <input type="radio" name="form2" value="0" onclick="expandir_form(4,1)">No</input>
                </td>
                <tr id="form4">
                  <td colspan="2" id="tituloTabla">
                    Situaci&oacute;n de Embarazo en la adolescencia en la Instituci&oacute;n
                  </td>
                </tr>

                <tr id="form44">
                  <td colspan="2">Nro. de alumnas embarazadas:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    <html:text maxlength="3" size="3" property="embarazosTotal" /></td>
                </tr>
                <tr id="form444">
                  <td colspan="2">Nro. por Edades:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    12<html:text size="2" maxlength="2" property="embarazos12" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    13<html:text size="2" maxlength="2" property="embarazos13" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    14<html:text size="2" maxlength="2" property="embarazos14" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    15<html:text size="2" maxlength="2" property="embarazos15" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    16<html:text size="2" maxlength="2" property="embarazos16" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    17<html:text size="2" maxlength="2" property="embarazos17" />
                  </td>
                </tr>
                <tr id="form4444">
                  <td colspan="2">Nro. por Nivel:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    7mo<html:text size="2" maxlength="2" property="embarazos7" />&nbsp;&nbsp;&nbsp;&nbsp;
                    8vo<html:text size="2" maxlength="2" property="embarazos8" />&nbsp;&nbsp;&nbsp;&nbsp; 
                    9no<html:text size="2" maxlength="2" property="embarazos9" />&nbsp;&nbsp;&nbsp;&nbsp; 
                    4to<html:text size="2" maxlength="2" property="embarazos4" />&nbsp;&nbsp;&nbsp;&nbsp;
                    5to<html:text size="2" maxlength="2" property="embarazos5" />&nbsp;&nbsp;&nbsp;&nbsp; 
                    6to<html:text size="2" maxlength="2" property="embarazos6" />
                  </td>
                </tr>
                </div>
                <tr>
                  <td colspan="2" id="tituloTabla">
                    Tipo de asistencia por parte de la instituci&oacute;n
                  </td>
                </tr>
                <tr>
                  <td colspan="2">Orientacion individualizada:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    Si<html:radio property="orientacionIndividual" value="true"/>
                    No<html:radio property="orientacionIndividual" value="false"/>
                  </td>
                </tr>  
                <tr>
                  <td colspan="2">Orientacion familiar:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    Si<html:radio property="orientacionFamiliar" value="true"/>
                    No<html:radio property="orientacionFamiliar" value="false"/>
                  </td>
                </tr>                  
                <tr>
                  <td colspan="2">Remitir a programas:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    <input type="radio" name="form3" value="1" onclick="expandir_form(2,0)">Si</input>
                    <input type="radio" name="form3"value="0" onclick="expandir_form(2,1)">No</input>
                    <div id="form2">Cuales:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                      <html:text maxlength="60" size="60" property="programasRemitidos" />
                    </div>
                  </td>
                </tr> 

                <tr>
                  <td colspan="2" id="negrita">Aplicacion de programas de orientaci&oacute;n personal - social:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                    <input type="radio" name="form4" value="1" onclick="expandir_form(3,0)">Si</input>
                    <input type="radio" name="form4" value="0" onclick="expandir_form(3,1)">No</input>
                    <div id="form3">Cuales:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                      <html:text maxlength="60" size="60" property="programasOPS" />
                    </div>
                  </td>
                </tr>
              </tbody>
            </table>
            <div class="center">
              <input id="boton" type="button" value="Volver atr&aacute;s" onclick='document.forms["Institucion"].submit()'/>
              <html:submit styleId="boton" value="Agregar"/><BR/>
            </div>
          </html:form>
          <html:form action="/PageAgregarDatosInstitucion">
            <html:hidden property="id" value="<%= institucionid%>"/>
          </html:form>

        </div>

        <%@include file="lm.jsp" %>

        <div style="clear: both;"> </div>

      </div>
    </div>

    <%@include file="footer.jsp" %>

  </body>
</html>